package com.piker.pikeropen.server;

import java.util.List;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class RecuringSportingEventDTO {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key mKey;

	@Persistent
	private String mName;

	@Persistent(dependentElement = "true")
	private List<GolferDTO> mEligibleGolfers;

	public RecuringSportingEventDTO(Key key, String name, List<GolferDTO> eligibleGolfers) {
		super();
		mKey = key;
		mName = name;
		mEligibleGolfers = eligibleGolfers;
	}

	public Key getKey() {
		return mKey;
	}

	public void setKey(Key key) {
		mKey = key;
	}

	public String getName() {
		return mName;
	}

	public void setName(String name) {
		mName = name;
	}

	public List<GolferDTO> getEligibleGolfers() {
		return mEligibleGolfers;
	}

	public void setEligibleGolfers(List<GolferDTO> eligibleGolfers) {
		mEligibleGolfers = eligibleGolfers;
	}
}
